package com.example.wangzh.developkit.model;

import java.util.List;

/**
 * Created by wangzh on 2017/11/13.
 */

public class TwoWheelData<FIRST extends TwoWheelData.WheelDataFirst,
        SECOND extends TwoWheelData.WheelDataSecond> {
    FIRST wheelDataFirst;
    List<SECOND> wheelDataSecondList;

    public TwoWheelData(FIRST wheelDataFirst, List<SECOND> wheelDataSecondList) {
        this.wheelDataFirst = wheelDataFirst;
        this.wheelDataSecondList = wheelDataSecondList;
    }

    public FIRST getWheelDataFirst() {
        return wheelDataFirst;
    }

    public void setWheelDataFirst(FIRST wheelDataFirst) {
        this.wheelDataFirst = wheelDataFirst;
    }

    public List<SECOND> getWheelDataSecondList() {
        return wheelDataSecondList;
    }

    public void setWheelDataSecondList(List<SECOND> wheelDataSecondList) {
        this.wheelDataSecondList = wheelDataSecondList;
    }

    public static class WheelDataFirst {
        String name;

        public WheelDataFirst(String name) {
            this.name = name;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }
    }

    public static class WheelDataSecond {
        String name;

        public WheelDataSecond(String name) {
            this.name = name;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }
    }
}
